// 首页二级路由
import Main from "../views/Main/index.vue";
import Housing from "../views/Housing";
import Live from "../views/Live";
import GroupBuying from "../views/Group";
import Examine from "../views/Examine";
import Order from "../views/Order";
import Information from "../views/Information";
import Agent from "../views/Agent";
import Authority from "../views/Authority";

const routes = [{
        path: "/main",
        name: "main",
        component: Main,
        meta: {
            name: "首页",
            visible: true, // 隐藏
        },
    },
    {
        path: "/housing",
        name: "housing",
        component: Housing,
        meta: {
            name: "房源管理",
            icon: "",
            auth: "101",
        },
    },
    {
        path: "/live",
        name: "live",
        component: Live,
        meta: {
            name: "直播管理",
            auth: "102",
        },
    },
    {
        path: "/groupBuying",
        name: "groupBuying",
        component: GroupBuying,
        meta: {
            name: "团购管理",
            icon: "",
            auth: "103",
        },
    },
    {
        path: "/examine",
        name: "examine",
        component: Examine,
        meta: {
            name: "审核管理",
            auth: "104",
        },
    },
    {
        path: "/order",
        name: "order",
        component: Order,
        meta: {
            name: "订单管理",
            auth: "105",
        },
    },
    {
        path: "/information",
        name: "information",
        component: Information,
        meta: {
            name: "资讯管理",
            icon: "",
            auth: "106",
        },
    },
    {
        path: "/authority",
        name: "Authority",
        component: Authority,
        meta: {
            name: "权限管理",
            auth: "107",
        },
    },
    {
        path: "/agent",
        name: "agent",
        component: Agent,
        meta: {
            name: "经纪人管理",
            auth: "108",
        },
    },
];

export default routes;